Move g_autoptr macro for GtkEntryBuffer
authorEmmanuele Bassi <ebassi@gnome.org>
Tue, 8 Sep 2020 16:49:34 +0000 (17:49 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Tue, 8 Sep 2020 22:50:12 +0000 (23:50 +0100)
We need it into its own header, so we can derive from GtkEntryBuffer
with G_DECLARE_* macros without including gtk.h.

gtk/gtk-autocleanups.h
gtk/gtkentrybuffer.h

index eb4fb1b874e40705aa231bfa02f69dbc920ad5f4..77c6cd5a563fa800f2777baf98c654aca36b0524 100644 (file)
@@ -63,7 +63,6 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkCssProvider, g_object_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkDrawingArea, g_object_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkEditable, g_object_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkEntry, g_object_unref)
-G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkEntryBuffer, g_object_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkEntryCompletion, g_object_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkEventController, g_object_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkExpander, g_object_unref)
index b44bd63a05ed49195951f67858d2c61e02bbbfbd..a98ce90bcb7677ab1705f02ca544edf49eeba384 100644 (file)
@@ -137,6 +137,8 @@ void                      gtk_entry_buffer_emit_deleted_text      (GtkEntryBuffe
                                                                    guint            position,
                                                                    guint            n_chars);
 
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkEntryBuffer, g_object_unref)
+
 G_END_DECLS
 
 #endif /* __GTK_ENTRY_BUFFER_H__ */